from django.db import models

# Create your models here.
class Activity(models.Model):

    title = models.CharField(max_length=50, verbose_name='活动标题', null=False)
    content = models.TextField(max_length=1000, verbose_name='活动内容', null=False)
    activity_time = models.CharField(max_length=50, verbose_name='活动时间', default="", null=True)
    add_time = models.DateTimeField(verbose_name="添加时间", auto_now=True)

    def __str__(self):
        return self.title